import server from '../server'

//轮播图
var Carousel = async () => {
    var {
        data
    } = await server.get('https://api.it120.cc/small4/banner/list')
    return data
}
var Pice = async () => {
    var data = await server({
        method: "post",
        url: "https://api.it120.cc/small4/shop/goods/list",

    })
    return data
}



var categoryall = async (params) => {
    var {data} = await server({
        method: 'post',
        url: "https://api.it120.cc/small4/user/m/login?deviceId=007&deviceName=monkey",
        params:params
    })
    return Promise.resolve(data)
}

var newslist = async () => {
    var data = await server.get('https://api.it120.cc/small4/cms/news/list')
    return data
}

export {
    Carousel,
    Pice,
    categoryall,
    newslist
}